package com.scau.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 退货
 */
@Data
@TableName("return_goods")
public class ReturnGoodsDO {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Integer shopId;
    private String barCode; //
    private Long orderNumber;  // 所属进货批次
    private Long shelfId; // 所属上架批次
    private Boolean canResell; // 可再次销售？
    private String reason; // 退货缘由
    @TableField("`count`")
    private Integer count; // 退货数量
    private Integer serviceId; //受理售后点
    private Date time;
    @TableField("finishied")
    private Integer finished; // 处理状态 0：未完成，1：已完成
    private String type; // 店保or厂保

    public Integer getFinished() {
        return finished;
    }

    public void setFinished(Integer finished) {
        this.finished = finished;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public Long getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Long orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Long getShelfId() {
        return shelfId;
    }

    public void setShelfId(Long shelfId) {
        this.shelfId = shelfId;
    }

    public Boolean getCanResell() {
        return canResell;
    }

    public void setCanResell(Boolean canResell) {
        this.canResell = canResell;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getServiceId() {
        return serviceId;
    }

    public void setServiceId(Integer serviceId) {
        this.serviceId = serviceId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "ReturnGoodsDO{" +
                "id=" + id +
                ", shopId=" + shopId +
                ", barCode='" + barCode + '\'' +
                ", orderNumber=" + orderNumber +
                ", shelfId=" + shelfId +
                ", canResell=" + canResell +
                ", reason='" + reason + '\'' +
                ", count=" + count +
                ", serviceId=" + serviceId +
                ", time=" + time +
                ", finished=" + finished +
                ", type='" + type + '\'' +
                '}';
    }
}
